package com.smxy.mall.model.request.user;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@ApiModel
@Data
public class AccountReq {
    @NotNull(message = "~用户名不能为空")
    @NotBlank(message = "用户名不能为空")
    private String userName;
    @NotNull(message = "~密码不能为空")
    @NotBlank(message = "密码不能为空")
    private String userPsw;
    private Integer rolesId;
}
